import Qt 4.7
import "scripts.js" as Game

Rectangle {
    id: rectangle2
    x: 0
    y: 0
    width: 480
    height: 800
    color: "#000000"

    property alias highscores : dialogText.text
    property string username
    property string password

    Image {
        id: image1
        x: 0
        y: 0
        width: parent.width
        height: parent.height
        source: "images/bg.jpg"
    }


    Text {
        id: text1
        color: "#ffffff"
        text: "High Scores"
        font.pixelSize: 25
        anchors.horizontalCenter: parent.horizontalCenter
        font.family: "MS Shell Dlg 2"
        anchors.topMargin: 10
        anchors.top: parent.top
    }

    Text { id: dialogText; color: "#ffffff"; text: "" ; font.pixelSize: 22; anchors.left: parent.left; anchors.leftMargin: 50; anchors.top: parent.top; anchors.topMargin: 100; }

    Image {
        id: homeBtn
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 5
        anchors.horizontalCenter: parent.horizontalCenter
        height: 90
        width: 90
        z: 2
        source: "images/homebtn.png"
        opacity: 1

        MouseArea {
            anchors.fill : parent
            onPressed: parent.source = "images/homebtn2.png"
            onReleased: parent.source = "images/homebtn.png"
            onClicked: {
                Game.setState("");
            }
        }
    }

}
